# -*- coding: utf-8 -*-
from django.db import models

# Create your models here.
class dircache_model(models.Model):
    task_name =  models.CharField('任务名', max_length=100, unique=True)
    task_description = models.CharField('任务描述', max_length=100, unique=True)
    task_url =  models.TextField('任务URL', blank=True)

    def __unicode__(self):
        return self.task_name

    class Meta:
        verbose_name = '目录刷新'
        verbose_name_plural = '目录刷新'
        ordering = ['task_name']  # 按照哪个栏目排序


class filecache_model(models.Model):
    task_name =  models.CharField('任务名', max_length=100, unique=True)
    task_description = models.CharField('任务描述', max_length=100)
    task_url =  models.TextField('任务URL', blank=True)

    def __unicode__(self):
        return self.task_name

    class Meta:
        verbose_name = '文件刷新'
        verbose_name_plural = '文件刷新'
        ordering = ['task_name']  # 按照哪个栏目排序